﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace VirtualOrg.Web
{
    public partial class FormUserMaster : System.Web.UI.MasterPage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            LoadSubtitle();
        }

        private void LoadSubtitle()
        {
            string pagePath = Request.RawUrl.ToUpperInvariant();

            switch (pagePath)
            {
                case "/USER/DASHBOARD.ASPX":
                    lblSubtitle.Text = "My Dashboard";
                    break;
                case "/MANAGE/TODO.ASPX":
                    lblSubtitle.Text = "To Do List";
                    break;
                case "/MANAGE/TASKLIST.ASPX":
                    lblSubtitle.Text = "My Tasks";
                    break;
                case "/MANAGE/DEFECTLIST.ASPX":
                    lblSubtitle.Text = "My Defects";
                    break;
                case "/MANAGE/TIMESHEETLIST.ASPX":
                    lblSubtitle.Text = "Timesheet";
                    break;
                default:
                    break;
            }
        }
    }
}